package com.kaifamiao.www.demo.do0804;

import java.util.Arrays;

public class Demo02 {
    public static void main(String[] args) {
        String str = "七夕青蛙孤寡";
        //String[] strs= str.split("");
        String[] strs = str.split("",100);
        System.out.println(strs.length);
        System.out.println(Arrays.toString(strs));
        //围绕给定正则表达式的匹配拆分此字符串。
        String str1 = "七夕，青蛙，孤寡";
        String[] str1s = str1.split("/.");
        System.out.println(Arrays.toString(str1s));


        String s = String.join("","a","b","c","d");
        System.out.println(s);
    }
}
